public class App {
    static class testerimol implements Tester
    {
        @Override
        public String get(){
            return "111";
        }
    }
    public static void main(String[] args)
    {
        System.out.println("hello world");
        System.out.println(new testerimol());
        System.out.println(new testerimol().get());
        System.out.println(new Tester() {
            @Override
            public String get() {
                return"匿名内部类";
            }
        }.get());
        Tester tester=()->"Lambda表达式";
        System.out.println(tester.get());
        new App().doTester(App::get);

    }
     static String get()
    {
        return "方法参考";
    }
    void doTester(Tester tester)
    {
        System.out.println(tester.get());
    }
}
@FunctionalInterface
    interface Tester{
        String get();
    }

